package com.cdqidi.core.weixinmanager.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;


/**
 * 公众号模板消息
 *
 * @author sjk
 */
@Getter
@Setter
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@TableName("sys_wx_template_msg_detailed")
public class TemplateMsgDetailed extends Model<TemplateMsgDetailed> implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;
    /**
     * 模板id
     */
    @TableField("template_id")
    private String templateId;
    /**
     * 模板编号
     */
    @TableField("template_id_short")
    private String templateIdShort;
    /**
     * 模板标题
     */
    @TableField("template_title")
    private String templateTitle;
    /**
     * 模板内容
     */
    @TableField("template_content")
    private String templateContent;
    /**
     * 模板类型
     */
    @TableField("template_type")
    private Integer templateType;
    /**
     * 公众号
     */
    @TableField("appid")
    private String appId;

    public void freeData() {
        this.id = null;
        this.templateId = null;
        this.templateIdShort = null;
        this.templateTitle = null;
        this.templateContent = null;
        this.templateType = null;
        this.appId = null;
    }

}
